<?php
namespace app\admin\controller;
use app\model\PayLog;

class PayController extends AuthController
{
    protected function _initialize(){
        parent::_initialize();
    }

    public function index(){
        $pay = new PayLog();
        $id = $this->request->param('id');
        if(!is_null($id)&&($id != '')){
            $pay->where('user_id',$id);
        }
        $result = $pay
            ->order('id desc')
            ->paginate(20);

        $this->assign('list',$result);
        return $this->fetch();
    }
}